package com.chatplus.application.domain.vo.file;

import java.io.Serializable;
import java.util.Date;

/**
 * 文件上传响应
 *
 * @author Administrator
 */
public class UpLoadFileVo implements Serializable {

    private static final long serialVersionUID = 3219394916639164853L;

    public UpLoadFileVo(Boolean success, String id, String url, String contentType) {
        this.success = success;
        this.id = id;
        this.url = url;
        this.contentType = contentType;
    }

    public UpLoadFileVo(Boolean success) {
        this.success = success;
    }

    /**
     * 文件上传是否成功
     */
    private Boolean success;

    /**
     * 文件上传成功后的 文件标识
     */
    private String id;

    /**
     * 文件上传成功后的访问你地址
     */
    private String url;

    /**
     * 文件类型标识
     */
    private String contentType;

    /**
     * 文件上传时间
     */
    private Date uploadedAt;


    public Boolean getSuccess() {
        return success;
    }

    public void setSuccess(Boolean success) {
        this.success = success;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getContentType() {
        return contentType;
    }

    public void setContentType(String contentType) {
        this.contentType = contentType;
    }

    public Date getUploadedAt() {
        return uploadedAt;
    }

    public void setUploadedAt(Date uploadedAt) {
        this.uploadedAt = uploadedAt;
    }
}
